<?php

/**
 * @return false|mysqli
 */
namespace app\php;
include "./Conn.php";

$aac = new Conn;
$conn  = $aac-> aaaaaa();


$runoob_title = '学习 Python';
$runoob_author = 'RUNOOB.COM';
$submission_date = '2016-03-06';


for ($a = 1; $a <= 100; $a++) {
    $aa = $runoob_title . (string)$a;
    $ab = $runoob_author . (string)$a;


    $sql = "INSERT INTO runoob_tbl " .
        "(runoob_title,runoob_author, submission_date) " .
        "VALUES " .
        "('$aa','$ab','$submission_date')";
    $retval = mysqli_query($conn, $sql);
    if (!$retval) {
        die('无法插入数据: ' . mysqli_error($conn));
    }
    echo "数据插入成功\n";

}


mysqli_close($conn);
?>
